<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition>

            <div id="stylized" class="myform">
                <h3>Desempenho por Turma</h3>


                <div id="relato">
                    <table>
                        <tbody>
                            <tr>
                                <th>Nome</th>
                                <td>#{RelatorioController.turma.nome}</td>
                            </tr>
                            <tr>
                                <th>Disciplina</th>
                                <td>#{RelatorioController.turma.disciplinaProfessor.disciplina.nome}</td>
                            </tr>


                        </tbody>
                    </table>

                </div>


                <h3>Conteudos Trabalhados em Listas</h3>
                <br />
                <h:panelGrid columns="3" border="1" rules="all">
                    <c:forEach items="#{RelatorioController.relatorioTurma}" var="relatorioTemp" varStatus="stat" >
                        <h:outputText value="#{relatorioTemp}" escape="false" />
                    </c:forEach>

                </h:panelGrid> 

                <br />
                <p:pieChart value="#{RelatorioController.pieConteudoTurma}" legendPosition="w"  
                            title="Gráfico de Utilização do Conteúdo Para a Turma" style="width:400px;height:300px" /> 

                <br />

                <p:barChart value="#{RelatorioController.categoryModel}" legendPosition="ne"  
                            title="Desempenho dos alunos da turma" min="0" max="200" style="height:300px"/>



            </div>
        </ui:composition>

    </body>
</html>
